package com.controller;

import com.dto.BaseDto;
import com.servcice.GenChartService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

@Controller
public class GenChartController {
    @Resource
    GenChartService genChartService;


    @RequestMapping(value = "/select/{methodname}")
    @ResponseBody
    public BaseDto getDataSet(@PathVariable("methodname")String methodname) throws InvocationTargetException, IllegalAccessException {
        return genChartService.getDataSet(methodname);
    }
}
